<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Insert title here</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Expires" content="0">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-store,no-cache"> 
<meta name="Handheldfriendly" content="true">
<meta name="viewport" content="width=100%; initial-scale=1.0; user-scalable=yes">
<link href="css/css.css" rel="stylesheet" type="text/css"/>
<link href="css/easyui.css" rel="stylesheet" type="text/css"/>
<link href="css/index.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" charset="utf-8" src="js/jquery-1.4.2.min.js"></script>
<script type="text/javascript" charset="utf-8" src="js/jquery.easyui.min.js"></script>
<script type="text/javascript" charset="utf-8" src="js/jquery.parser.js"></script>
<script type="text/javascript" charset="utf-8" src="js/my97/WdatePicker.js"></script>
<script type="text/javascript" charset="utf-8" src="js/datekj.js"></script>
<script type="text/javascript" language="javascript">

//date转文本
function getdatestr(date) {
    return date.getFullYear() + "-" + appendZero(date.getMonth() + 1) + "-" + appendZero(date.getDate());
}
//补0函数
function appendZero(s) { return ("00" + s).substr((s + "").length); }  

$(function(){
//是否健康教育的js控制
	$("input[name='iWeatherHealthEducation']").click(function(event){
		if($(this).attr('checked')==true){
			$("#trsHearthyContent").show();  
		}else{
			$("#trsHearthyContent").hide(); 
			$("#sWeatherHealthEducationContent").val("");
		}
	});
	//选择健康指导	
	$('#divChoseJianKangZhiDao').dialog({
		closed:true,
		modal:true ,
			buttons:[
			{
				text:"<font size='4'>确定</font>",
				iconCls:'icon-ok',
				handler:function(){
					var content = "";
					$("input[name='JianKangZhidaoContentCode']:checked").each(function(i) {
						var id = $(this).attr("id");
					    content += $("#JianKangZhiDao"+id).html()+'\r';
					});
					$("#sWeatherHealthEducationContent").text(content)	
					$('#divChoseJianKangZhiDao').dialog('close');
				}
			},
			{
				text:"<font size='4'>返回</font>",
				iconCls:'icon-back',
				handler:function(){
					$('#divChoseJianKangZhiDao').dialog('close');
				}
			}
		],
		onClose:function(){
		}
	});
//选择行为干预	
	$('#divChoseZhongYiBaoJian').dialog({
		closed:true,
		modal:true ,
			buttons:[
			{
				text:"<font size='4'>确定</font>",
				iconCls:'icon-ok',
				handler:function(){ 
					var content = "";
					$("input[name='BaoJianZhidaoContentCode']:checked").each(function(i) {
						var id = $(this).attr("id");
					    content += $("#ZhongYiBaoJian"+id).html()+'\r';
					});
					$("#BaoJianZhidaoContent").text(content)	
					$('#divChoseZhongYiBaoJian').dialog('close');
				}
			},
			{
				text:"<font size='4'>返回</font>",
				iconCls:'icon-back',
				handler:function(){
					$('#divChoseZhongYiBaoJian').dialog('close');
				}
			}
		],
		onClose:function(){
		}
	});
})
//计算出当前体质指数
function getBodyMassIndex1(){
	if(""!=$("#nWeight1").val() && ""!=$("#txtdHeight").val()){
		var nWeight1 = parseInt($("#nWeight1").val());
		var txtdHeight = parseInt($("#txtdHeight").val())/100;
		var nBodyMassIndex1 = nWeight1/(txtdHeight*txtdHeight);
		$("#nBodyMassIndex1").val(parseFloat(nBodyMassIndex1).toFixed(2));
	}
}
//计算出目标体质指数
function getBodyMassIndex2(){
	if(""!=$("#nWeight2").val() && ""!=$("#txtdHeight").val()){
		var nWeight2 = parseInt($("#nWeight2").val());
		var txtdHeight = parseInt($("#txtdHeight").val())/100;
		var nBodyMassIndex2 = nWeight2/(txtdHeight*txtdHeight);
		$("#nBodyMassIndex2").val(parseFloat(nBodyMassIndex2).toFixed(1));
	}
}
//绑定药物不良反应的js控制
function changesDrugReactionCode(selObj) {
	var selectd = selObj.options[selObj.selectedIndex].value;
	if('2'==selectd){
			$("#sDrugReactionOther").show(); 
		}else{
			$("#sDrugReactionOther").hide(); 
			$("#sDrugReactionOther").val("");
		}
}
 

//其他单位
function showDanWeiQt1(selObj){
	var selectd = selObj.options[selObj.selectedIndex].value;
	if('99'==selectd){
		$("#sDrug_qitadw1").show(); 
	}else{
		$("#sDrug_qitadw1").hide(); 
		$("#sDrug_qitadw1").val("");
	}
}
function showDanWeiQt2(selObj){
	var selectd = selObj.options[selObj.selectedIndex].value;
	if('99'==selectd){
		$("#sDrug_qitadw2").show(); 
	}else{
		$("#sDrug_qitadw2").hide(); 
		$("#sDrug_qitadw2").val("");
	}
}
function showDanWeiQt3(selObj){
	var selectd = selObj.options[selObj.selectedIndex].value;
	if('99'==selectd){
		$("#sDrug_qitadw3").show(); 
	}else{
		$("#sDrug_qitadw3").hide(); 
		$("#sDrug_qitadw3").val("");
	}
}
function showDanWeiQt4(selObj){
	var selectd = selObj.options[selObj.selectedIndex].value;
	if('99'==selectd){
		$("#sDrug_qitadw4").show(); 
	}else{
		$("#sDrug_qitadw4").hide(); 
		$("#sDrug_qitadw4").val("");
	}
}
 //显示选择健康指导的弹出层
function ChoseJianKangZhiDao() {
	$("#divChoseJianKangZhiDao").window('open');
}
 //显示选择行为干预的弹出层
function ChoseZhongYiBaoJian() {
	$("#divChoseZhongYiBaoJian").window('open');
}
//初始化显示

function showHtml(jsondata,jsondata2,ishuixian){
	var jsonobjs = eval('(' + jsondata + ')');//JSONObject格式的用此解析---初始化
	for(var i=0; i<jsonobjs.VisitingTypes.length; i++){//随访方式
		$('#sVisitingTypeCode').append("<option value='"+jsonobjs.VisitingTypes[i].itemCode+"'>"+jsonobjs.VisitingTypes[i].itemName+"</option>");
	}
	for(var i=0; i<jsonobjs.Symptoms.length; i++){//症状
		$('#sSymptomOther').before("<input type='checkbox' class='csszz' name='sSymptomCode' value='"+jsonobjs.Symptoms[i].itemCode+"'/><span style='font-size:18px;'>"+jsonobjs.Symptoms[i].itemName+"</span>");
	}
	for(var i=0; i<jsonobjs.HaveSolts.length; i++){//目前摄盐情况
		$('#sHaveSoltCode').append("<option value='"+jsonobjs.HaveSolts[i].itemCode+"'>"+jsonobjs.HaveSolts[i].itemName+"</option>");
	}
	for(var i=0; i<jsonobjs.HaveSolts.length; i++){//下次目标摄取盐情况
		$('#sHaveSoltCode2').append("<option value='"+jsonobjs.HaveSolts[i].itemCode+"'>"+jsonobjs.HaveSolts[i].itemName+"</option>");
	}
	for(var i=0; i<jsonobjs.PsychplogicalRecovers.length; i++){//心理调整
		$('#sPsychplogicalRecoveryCode').append("<option value='"+jsonobjs.PsychplogicalRecovers[i].itemCode+"'>"+jsonobjs.PsychplogicalRecovers[i].itemName+"</option>");
	}
	for(var i=0; i<jsonobjs.PsychplogicalRecovers.length; i++){//遵医行为
		$('#sCompianceCode').append("<option value='"+jsonobjs.PsychplogicalRecovers[i].itemCode+"'>"+jsonobjs.PsychplogicalRecovers[i].itemName+"</option>");
	}
	for(var i=0; i<jsonobjs.DrugCompliances.length; i++){//药物服从性
		$('#sDrugComplianceCode').append("<option value='"+jsonobjs.DrugCompliances[i].itemCode+"'>"+jsonobjs.DrugCompliances[i].itemName+"</option>");
	}
	for(var i=0; i<jsonobjs.DrugReactions.length; i++){//药物不良反应
		$('#sDrugReactionCode').append("<option value='"+jsonobjs.DrugReactions[i].itemCode+"'>"+jsonobjs.DrugReactions[i].itemName+"</option>");
	}
	for(var i=0; i<jsonobjs.VisitingClassifys.length; i++){//此次随访分类
		$('#sVisitingClassifyCode').append("<option value='"+jsonobjs.VisitingClassifys[i].itemCode+"'>"+jsonobjs.VisitingClassifys[i].itemName+"</option>");
	}
	for(var i=0; i<jsonobjs.DoctorList.length; i++){//医生列表
		$('#sVisitingDoctor').append("<option value='"+jsonobjs.DoctorList[i].sPersonName+"'>"+jsonobjs.DoctorList[i].sPersonName+"</option>");
	}
	if(jsonobjs.sName!="")
		$("#sName").val(jsonobjs.sName);
	if(jsonobjs.sNo!="")
		$("#sNo").val(jsonobjs.sNo);
	$("#dVisitingDate").val(jsonobjs.dVisitingDate);
	$("#dNextVisitingDate").val(jsonobjs.dNextVisitingDate);
	$("#sNextVisitingPlace").val(jsonobjs.sNextVisitingPlace);
	$("#sVisitingDoctor").val(jsonobjs.sVisitingDoctor);
//绑定症状的js控制	
	$("input[name='sSymptomCode']").live("click", function(){
		if('1'==$(this).val()){
			if($(this).attr('checked')==true){
				$("input[name='sSymptomCode'][value!='1']").each(function() {
					$(this).attr("checked",false);
				});
				$("#sSymptomOther").css('display','none'); 
				$("#sSymptomOther").val("");
			}
		}else{
			if($(this).attr('checked')==true){
				$("input[name='sSymptomCode'][value='1']").each(function() {
					$(this).attr("checked",false);
				});
				if('10'==$(this).val()){
					$("#sSymptomOther").css('display','block'); 
				}
			}else{
				if('10'==$(this).val()){
					$("#sSymptomOther").css('display','none'); 
					$("#sSymptomOther").val("");
				}
			}
		}
     });
     // 回显赋值-------
	// alert(jsondata2);
     var jss = eval(jsondata2);
	
    // var jsonobjs = eval('(' + jsondata + ')');//JSONObject格式的用此解析---初始化
     if(jss != ""){
	     
	  if(ishuixian=='1'){
	     $('.btn_submit').hide();}
     	 var jsonobjs2 = jss[0];
     	 $("#txtdHeight").val(jsonobjs2.nHeight);
	     $("#sName").val(jsonobjs2.sName);
	     $("#sNo").val(jsonobjs2.sNo);
		//  alert(jsonobjs2.dAddTime);
		// getjsondate.(jsonobjs2.dAddTime);
	    //  alert(getdatestr(new Date(jsonobjs2.dAddTime)));
	     $("#dVisitingDate").val(getdatestr(new Date(jsonobjs2.dAddTime)).substring(0,10));// dVisitingDate
	     $("#sVisitingTypeCode").val(jsonobjs2.sVisitingTypeCode);
	     $("#iSystolicPressure").val(jsonobjs2.iSystolicPressure);
	     $("#iDiastolicPressure").val(jsonobjs2.iDiastolicPressure);
	     $("#nWeight1").val(jsonobjs2.nWeight1);
	     $("#txtdHeight").val(jsonobjs2.txtdHeight);
	     $("#nWeight2").val(jsonobjs2.nWeight2);
	     $("#nBodyMassIndex1").val(jsonobjs2.nBodyMassIndex1);
	     $("#nBodyMassIndex2").val(jsonobjs2.nBodyMassIndex2);
	     $("#nHeartRate").val(jsonobjs2.nHeartRate);
	     $("#sOther").val(jsonobjs2.sOther);
	     $("#nDaySmoke1").val(jsonobjs2.nDaySmoke1);
	     $("#nDaySmoke2").val(jsonobjs2.nDaySmoke2);
	     $("#nDayDrink1").val(jsonobjs2.nDayDrink1);
	     $("#nDayDrink2").val(jsonobjs2.nDayDrink2);
	     $("#nSport_EveryWeek1").val(jsonobjs2.nSport_EveryWeek1);
	     $("#nSport_EveryMinute1").val(jsonobjs2.nSport_EveryMinute1);
	     $("#nSport_EveryWeek2").val(jsonobjs2.nSport_EveryWeek2);
	     $("#nSport_EveryMinute2").val(jsonobjs2.nSport_EveryMinute2);
	     $("#sHaveSoltCode").val(jsonobjs2.sHaveSoltCode);
	     $("#sHaveSoltCode2").val(jsonobjs2.sHaveSoltCode2);
	     $("#sPsychplogicalRecoveryCode").val(jsonobjs2.sPsychplogicalRecoveryCode);
	     $("#sCompianceCode").val(jsonobjs2.sCompianceCode);
	     $("#sAccessoryExamination").val(jsonobjs2.sAccessoryExamination);
	     $("#sDrugComplianceCode").val(jsonobjs2.sDrugComplianceCode);
	     $("#sDrugReactionCode").val(jsonobjs2.sDrugReactionCode);
	     $("#sVisitingClassifyCode").val(jsonobjs2.sVisitingClassifyCode);
	     
		 $("#sTransferTreatment").val(jsonobjs2.sTransferTreatment);
	     $("#sTransferTreatmentDept").val(jsonobjs2.sTransferTreatmentDept);
	     $("#dNextVisitingDate").val(jsonobjs2.dNextVisitingDate);
	     $("#sNextVisitingPlace").val(jsonobjs2.sNextVisitingPlace);
	     $("#sVisitingDoctor").append("<option>"+jsonobjs2.sVisitingDoctor+"</option>");
	     $("#sVisitingDoctor").val(jsonobjs2.sVisitingDoctor);
	     $("#iWeatherHealthEducation").val(jsonobjs2.iWeatherHealthEducation);
	     $("#BaoJianZhidaoContent").val(jsonobjs2.BaoJianZhidaoContent);
	     if(jsonobjs2.sSymptomCode != "") {
			var str1 = jsonobjs2.sSymptomCode.split(",");
			for (var i=0; i<str1.length;i++) {
				$("input[name='sSymptomCode'][value="+str1[i]+"]").attr("checked",true);
				if(1==str1[i]){
					$("input[name='sSymptomCode'][value!='1']").each(function() {
						$(this).attr("checked",false);
					});
				} else if(10==str1[i]){
					$("#sSymptomOther").css('display','block'); 
					$("#sSymptomOther").val(jsonobjs2.sSymptomOther);
				}
			}
		}
		if(jsonobjs2.iWeatherHealthEducation != "" && jsonobjs2.iWeatherHealthEducation == 1) {
	     	$("#iWeatherHealthEducation").attr("checked",true);
	     	$("#trsHearthyContent").show();
		    $("#sWeatherHealthEducationContent").val(jsonobjs2.sWeatherHealthEducationContent);
	    }
	    if(jsonobjs2.sDrugReactionCode == 2) {
	    	$("#sDrugReactionOther").show();
	    	$("#sDrugReactionOther").val(jsonobjs2.sDrugReactionOther);
	    }
		 
	     var js = jss[1].sMedicalList;
	     var jsonobjs22 = eval(js);
	     if(jsonobjs22 != "") {
		     $("#sDrugName1").val(jsonobjs22[0].sDrugName);
		     $("#iDrug_EveryDay1").val(jsonobjs22[0].iDrug_EveryDay);
		     $("#sDrug_EveryTime1").val(jsonobjs22[0].sDrug_EveryTime);
			 $("#sDrugQtdw1").val(jsonobjs22[0].sDrugQtdw);

			 if(jsonobjs22[0].sDrugQtdw == 99) {
	    	$("#sDrug_qitadw1").show();
	    	$("#sDrug_qitadw1").val(jsonobjs22[0].sDrug_qitadw);
	    }

		     $("#sDrugName2").val(jsonobjs22[1].sDrugName);
		     $("#iDrug_EveryDay2").val(jsonobjs22[1].iDrug_EveryDay);
		     $("#sDrug_EveryTime2").val(jsonobjs22[1].sDrug_EveryTime);
			 $("#sDrugQtdw2").val(jsonobjs22[1].sDrugQtdw);
			 
			  if(jsonobjs22[1].sDrugQtdw == 99) {
	    	$("#sDrug_qitadw2").show();
	    	$("#sDrug_qitadw2").val(jsonobjs22[1].sDrug_qitadw);
	    }
		     $("#sDrugName3").val(jsonobjs22[2].sDrugName);
		     $("#iDrug_EveryDay3").val(jsonobjs22[2].iDrug_EveryDay);
		     $("#sDrug_EveryTime3").val(jsonobjs22[2].sDrug_EveryTime);
			 $("#sDrugQtdw3").val(jsonobjs22[2].sDrugQtdw);
			   if(jsonobjs22[2].sDrugQtdw == 99) {
	    	$("#sDrug_qitadw3").show();
	    	$("#sDrug_qitadw3").val(jsonobjs22[2].sDrug_qitadw);
	    }
			 if(jsonobjs22.length>3){
		     $("#sDrugName4").val(jsonobjs22[3].sDrugName);
		     $("#iDrug_EveryDay4").val(jsonobjs22[3].iDrug_EveryDay);
		     $("#sDrug_EveryTime4").val(jsonobjs22[3].sDrug_EveryTime);
			   $("#sDrugQtdw4").val(jsonobjs22[3].sDrugQtdw);
			     if(jsonobjs22[3].sDrugQtdw == 99) {
	    	$("#sDrug_qitadw4").show();
	    	$("#sDrug_qitadw4").val(jsonobjs22[3].sDrug_qitadw);
	    }}
	     }
		

     }
}
//保存操作
function save(uploadType){

	if(isEmpty($("#sName").val())){
		alert("请填写患者姓名!");
		return false;
	}

	if(isEmpty($("#dVisitingDate").val())){
		alert("请填写随访时间!");
		return false;
	}

	if(getOptionSelectedIndex('sVisitingTypeCode')==0){
		alert('请选择随访方式!');
		return false;
	}

	if(isEmpty($("#iSystolicPressure").val())){
		alert("请填写收缩压!");
		return false;
	}

	if(isEmpty($("#iDiastolicPressure").val())){
		alert("请填写舒张压!");
		return false;
	}

	if(isEmpty($("#nWeight1").val())){
		alert("请填写体重!");
		return false;
	}

	if(isEmpty($("#txtdHeight").val())){
		alert("请填写身高!");
		return false;
	}

	if(isEmpty($("#nBodyMassIndex1").val())){
		alert("请填写当前体质指数!");
		return false;
	}

	if(isEmpty($("#nHeartRate").val())){
		alert("请填写心率!");
		return false;
	}

	if(isEmpty($("#nDaySmoke1").val())){
		alert("请填写目前吸烟量!");
		return false;
	}

	if(isEmpty($("#nDayDrink1").val())){
		alert("请填写目前饮酒量!");
		return false;
	}

	if(isEmpty($("#nSport_EveryWeek1").val())){
		alert("请填写目前运动(次/周)!");
		return false;
	}

	if(isEmpty($("#nSport_EveryMinute1").val())){
		alert("请填写目前运动(分钟/次)!");
		return false;
	}

	if(getOptionSelectedIndex('sPsychplogicalRecoveryCode')==0){
		alert('请选择心理调整!');
		return false;
	}

	if(getOptionSelectedIndex('sDrugComplianceCode')==0){
		alert('请选择服药依从性!');
		return false;
	}

	if(getOptionSelectedIndex('sDrugReactionCode')==0){
		alert('请选择药物不良反应!');
		return false;
	}

	if(getOptionSelectedIndex('sVisitingClassifyCode')==0){
		alert('请选择此次随访分类!');
		return false;
	}





	if($("#sNextVisitingPlace").val()==""){
		alert("请填写随访单位！");
		return false;
	}
	if($("#sVisitingDoctor").val()==""){
		alert("请填写随访医生！");
		return false;
	}
//获取症状值
	var chkIds_sSymptomCode = "";
	$("input[name='sSymptomCode']:checked").each(function(i) {
		chkIds_sSymptomCode += String($(this).val() + ",");
	});
	chkIds_sSymptomCode = chkIds_sSymptomCode.substring(0,chkIds_sSymptomCode.length - 1);
//中医保健指导代码
	var chkIds_BaoJianZhidaoContentCode = "";
	$("input[name='BaoJianZhidaoContentCode']:checked").each(function(i) {
		chkIds_BaoJianZhidaoContentCode += String($(this).val() + ",");
	});
	chkIds_BaoJianZhidaoContentCode = chkIds_BaoJianZhidaoContentCode.substring(0,chkIds_BaoJianZhidaoContentCode.length - 1);	
//是否健康教育
	var iWeatherHealthEducation = "";
	if($("input[name='iWeatherHealthEducation']").attr('checked')==true){
			iWeatherHealthEducation = 1;
		}else{
			iWeatherHealthEducation = 0;
		}	
	var sName = $("#sName").val();
	var sNo = $("#sNo").val();
	var dVisitingDate = $("#dVisitingDate").val();
	var sVisitingTypeCode =	$("#sVisitingTypeCode").val();
	//随访方式
	var sVisitingTypeName=$("#sVisitingTypeCode").find("option:selected").text();
	if("--请选择--"==sVisitingTypeName){
	sVisitingTypeName="";
	}
	var sHaveSoltName=$("#sHaveSoltCode").find("option:selected").text();
	if("--请选择--"==sHaveSoltName){
	sHaveSoltName="";
	}
	var sHaveSoltName2=$("#sHaveSoltCode2").find("option:selected").text();
	if("--请选择--"==sHaveSoltName2){
	sHaveSoltName2="";
	}
	var sPsychplogicalRecoveryName=$("#sPsychplogicalRecoveryCode").find("option:selected").text();
	if("--请选择--"==sPsychplogicalRecoveryName){
	sPsychplogicalRecoveryName="";
	}
	var sDrugComplianceName=$("#sDrugComplianceCode").find("option:selected").text();
	if("--请选择--"==sDrugComplianceName){
	sDrugComplianceName="";
	}
	var sDrugReactionName=$("#sDrugReactionCode").find("option:selected").text();
	if("--请选择--"==sDrugReactionName){
	sDrugReactionName="";
	}
	var sVisitingClassifyName=$("#sVisitingClassifyCode").find("option:selected").text();
	if("--请选择--"==sVisitingClassifyName){
	sVisitingClassifyName="";
	}
	
	var sCompianceName=$("#sCompianceCode").find("option:selected").text();
	if("--请选择--"==sCompianceName){
	sCompianceName="";
	}

	
	var sSymptomCode = chkIds_sSymptomCode;
	var sSymptomOther = $("#sSymptomOther").val();
	<!--alert( $("#sSymptomOther"));-->
	
	var sSymptomName="";  
	$(".csszz").each(function(){
	   if($(this).attr("checked"))
	   {
	   sSymptomName+=$(this).next().text()+",";  
	   }
	    })
    if(sSymptomName != "")
    {
    	sSymptomName = sSymptomName.substring(0,sSymptomName.lastIndexOf(","));
    }

	var iSystolicPressure = $("#iSystolicPressure").val()==""?null:$("#iSystolicPressure").val();
	var iDiastolicPressure = $("#iDiastolicPressure").val()==""?null:$("#iDiastolicPressure").val();
	var nWeight1 = $("#nWeight1").val()==""?null:$("#nWeight1").val();
	var nWeight2 = $("#nWeight2").val()==""?null:$("#nWeight2").val();
	var txtdHeight = $("#txtdHeight").val()==""?null:$("#txtdHeight").val();
	var nBodyMassIndex1 = $("#nBodyMassIndex1").val()==""?null:$("#nBodyMassIndex1").val();
	var nBodyMassIndex2 = $("#nBodyMassIndex2").val()==""?null:$("#nBodyMassIndex2").val();
	var nHeartRate = $("#nHeartRate").val()==""?null:$("#nHeartRate").val();
	var sOther = $("#sOther").val();
	var nDaySmoke1 = $("#nDaySmoke1").val();
	var nDaySmoke2 = $("#nDaySmoke2").val();
	var nDayDrink1 = $("#nDayDrink1").val();
	var nDayDrink2 = $("#nDayDrink2").val();
	var nSport_EveryWeek1 = $("#nSport_EveryWeek1").val();
	var nSport_EveryMinute1 = $("#nSport_EveryMinute1").val();
	var nSport_EveryWeek2 = $("#nSport_EveryWeek2").val();
	var nSport_EveryMinute2 = $("#nSport_EveryMinute2").val();
	var sHaveSoltCode = $("#sHaveSoltCode").val();
	var sHaveSoltCode2 = $("#sHaveSoltCode2").val();
	var sPsychplogicalRecoveryCode = $("#sPsychplogicalRecoveryCode").val();
	var sCompianceCode = $("#sCompianceCode").val();
	var sAccessoryExamination = $("#sAccessoryExamination").val();
	var sDrugComplianceCode =  $("#sDrugComplianceCode").val();
	var sDrugReactionCode =  $("#sDrugReactionCode").val();
	var sDrugReactionOther = $("#sDrugReactionOther").val();
	var sVisitingClassifyCode = $("#sVisitingClassifyCode").val();
	var sTransferTreatment = $("#sTransferTreatment").val();
	var sTransferTreatmentDept = $("#sTransferTreatmentDept").val();
	var dNextVisitingDate = $("#dNextVisitingDate").val();
	var sNextVisitingPlace = $("#sNextVisitingPlace").val();
	var sVisitingDoctor = $("#sVisitingDoctor").val();
	var sWeatherHealthEducationContent = $("#sWeatherHealthEducationContent").val();
	var BaoJianZhidaoContent = $("#BaoJianZhidaoContent").val();
	var BaoJianZhidaoContentCode = chkIds_BaoJianZhidaoContentCode;
	var sDrugName1 = $("#sDrugName1").val();
	var iDrug_EveryDay1 = $("#iDrug_EveryDay1").val();
	var sDrug_EveryTime1 = $("#sDrug_EveryTime1").val();
	var sDrugName2 = $("#sDrugName2").val();
	var iDrug_EveryDay2 = $("#iDrug_EveryDay2").val();
	var sDrug_EveryTime2 = $("#sDrug_EveryTime2").val();
	var sDrugName3 = $("#sDrugName3").val();
	var iDrug_EveryDay3 = $("#iDrug_EveryDay3").val();
	var sDrug_EveryTime3 = $("#sDrug_EveryTime3").val();
	var sDrugName4 = $("#sDrugName4").val();
	var iDrug_EveryDay4 = $("#iDrug_EveryDay4").val();
	var sDrug_EveryTime4 = $("#sDrug_EveryTime4").val();
	
	
	var sDrugQtdw1 = $("#sDrugQtdw1").val();
	var sDrugQtdw2 = $("#sDrugQtdw2").val();
	var sDrugQtdw3 = $("#sDrugQtdw3").val();
	var sDrugQtdw4 = $("#sDrugQtdw4").val();
	
	var sDrug_qitadw1 = $("#sDrug_qitadw1").val();
	var sDrug_qitadw2 = $("#sDrug_qitadw2").val();
	var sDrug_qitadw3 = $("#sDrug_qitadw3").val();
	var sDrug_qitadw4 = $("#sDrug_qitadw4").val();
	 
	contact.save(uploadType,sCompianceName,sVisitingClassifyName,sDrugReactionName,sDrugComplianceName,sPsychplogicalRecoveryName,sHaveSoltName2,sHaveSoltName,sVisitingTypeName,sSymptomName,txtdHeight,sName,sNo,dVisitingDate,sVisitingTypeCode,sSymptomCode,sSymptomOther,iSystolicPressure,iDiastolicPressure,
				nWeight1,nWeight2,nBodyMassIndex1,nBodyMassIndex2,nHeartRate,sOther,nDaySmoke1,nDaySmoke2,nDayDrink1,nDayDrink2,
				nSport_EveryWeek1,nSport_EveryMinute1,nSport_EveryWeek2,nSport_EveryMinute2,sHaveSoltCode,sHaveSoltCode2,sPsychplogicalRecoveryCode,
				sCompianceCode,sAccessoryExamination,sDrugComplianceCode,sDrugReactionCode,sDrugReactionOther,sVisitingClassifyCode,sTransferTreatment,
				sTransferTreatmentDept,dNextVisitingDate,sNextVisitingPlace,sVisitingDoctor,iWeatherHealthEducation,sWeatherHealthEducationContent,
				BaoJianZhidaoContent,BaoJianZhidaoContentCode,sDrugName1,iDrug_EveryDay1,sDrug_EveryTime1,sDrugName2,iDrug_EveryDay2,sDrug_EveryTime2,
				sDrugName3,iDrug_EveryDay3,sDrug_EveryTime3,sDrugName4,iDrug_EveryDay4,sDrug_EveryTime4,sDrugQtdw1,sDrugQtdw2,sDrugQtdw3,sDrugQtdw4,sDrug_qitadw1,sDrug_qitadw2,sDrug_qitadw3,sDrug_qitadw4);
				
if(uploadType=="2"){
setTimeout((function(me){$("#btnSubmit").attr("disabled",true);return function(){$("#btnSubmit").attr("disabled",false);};})(this),5000);
}		
}

//显示从xml中取出的血压数据
function showXML(jsondata){
	try{

	var jsonobj = eval('(' + jsondata + ')');//JSONObject格式的用此解析
	$("#iSystolicPressure").val(jsonobj.cSP);
	$("#iDiastolicPressure").val(jsonobj.cDP);
	var chineseRepresentation = "";
	chineseRepresentation+="收缩压:"+jsonobj.cSP;
	chineseRepresentation+="   ";
	chineseRepresentation+="舒张压:"+jsonobj.cDP;
	alert(chineseRepresentation);
	//alert(jsondata);
	} catch(ex){
		//alert('exception:'+ex.message);
	}
}
//显示从xml中取出的心率数据
function showXML2(jsondata){
	$("#nHeartRate").val(jsondata);
	
}

function check1(){
    var re = /^[1-9]+[0-9]*]*$/;
    var value=$("#iSystolicPressure").val();
     if (!re.test(value))  
    {  
        $("#iSystolicPressure").val(""); 
        $("#iSystolicPressure").focus();  
        return false;  
     }  
}
function check2(){
    var re = /^[1-9]+[0-9]*]*$/;
    var value=$("#iDiastolicPressure").val();
     if (!re.test(value))  
    {  
        $("#iDiastolicPressure").val(""); 
        $("#iDiastolicPressure").focus();  
        return false;  
     }  
}


</script>
<script>
var c = new Calendar("c");
document.write(c);
</script>
</head>
<!-- js代码通过webView调用其插件中的java代码 -->
<body bgcolor="#ffffff" onload="javascript:contact.getHtml()">
		<div class="easyui-tabs" fit="false" border="false">
		
			<div title="<h1>症状、体征、生活方式指导</h1>" id="qqq">
					<table width="100%" border="0" align="center" cellpadding="0"
						cellspacing="0" class="content02">
						<tbody>
							<tr>
								<td align="right" width="15%">
									<font size="4" color="red">*</font><font size="4">姓名</font>
								</td>
								<td width="35%">
									<input id="sName" name="sName" type="text" class="srk200" value="" maxlength="50" readonly="readonly"/>
								</td>
								<td align="right" width="15%">
									<font size="4">档案编号</font>
								</td>
								<td width="35%">
									<input id="sNo" name="sNo" type="text" class="srk200" value="" maxlength="50" readonly="readonly"/>
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4" color="red">*</font><font size="4">随访时间</font>
								</td>
								<td>
									<input id="dVisitingDate" name="dVisitingDate" type="text" class="srk200" value="" maxlength="50"  readonly="readonly" onfocus="c.showMoreDay = false;c.show(this);"/>
								</td>
								<td align="right">
									<font size="4" color="red">*</font><font size="4">随访方式</font>
								</td>
								<td>
									<select id="sVisitingTypeCode" name="sVisitingTypeCode" style="font:23px/23px '宋体';font-weight: bold; color: #333333;height:30px;width:205px;margin-left:2px;padding:0px;">
										<option value=''>--请选择--</option>
									 </select>
								</td>
							</tr>
							<tr>
								<td colspan="4" class="zbt01" style="text-align: left">
									<h2>症状</h2>
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4">症状</font>
								</td>
								<td colspan="3">
									<input id="sSymptomOther" name="sSymptomOther" type="text" class="srk200" value="" maxlength="50" style="display:none;"/>
								</td>
							</tr>
							<tr>
								<td colspan="4" class="zbt01" style="text-align: left">
									<h2>体征</h2>
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4" color="red">*</font><font size="4">收缩压</font>
								</td>
								<td>
									<input id="iSystolicPressure" name="iSystolicPressure" onblur="return check1();" type="text" class="srk200" value="" maxlength="50"/><font size="4">mmHg</font>
									<input type="button" value="输入..." style="height:30px;width: 60px;font-size:15px;" onclick="contact.getXML('1')"/>
								</td>
								<td align="right">
									<font size="4" color="red">*</font><font size="4">舒张压</font>
								</td>
								<td>
									<input id="iDiastolicPressure" name="iDiastolicPressure" onblur="return check2();" type="text" class="srk200" value="" maxlength="25"/><font size="4">mmHg</font>
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4" color="red">*</font><font size="4">体重</font>
								</td>
								<td>
									<!--<input id="nWeight1" name="nWeight1" type="text" class="srk70" value="" maxlength="11" -->
										<!--onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')"  /><font size="4">kg</font>-->
									<input id="nWeight1" name="nWeight1" type="text" class="srk70" value="" maxlength="11"
										onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')"  /><font size="4">kg</font>
									<script>
									<!--function removeExtraDecimal(element){-->
										<!--var value = element.value;-->
										<!--var dotIndex = value.indexOf(".");-->
										<!--if(dotIndex == -1){-->
											<!--value = value.replace(/[^0-9\.]/g, '');-->
											<!--element.value = value;-->
										<!--} else {-->
											<!--element.value = value;-->
										<!--}-->
									<!--}-->
									<!--blyw("nWeight1",/[^0-9.]/g);-->
									<!---->
									<!--bllw("txtdHeight",/[^0-9.]/g);-->
									blyw_no_automatic_append_zero("nWeight1",/[^0-9.]/g);

									bllw_no_automatic_append_zero("txtdHeight",/[^0-9.]/g);

									</script>
									<font size="4">身高</font>
									<input id="txtdHeight" name="txtdHeight" type="text" class="srk70" value="" maxlength="11" 
										onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')"
										 /><font size="4">cm</font>
								</td>
								<td align="right">
									<font size="4">下次随访达到目标</font>
								</td>
								<td>
									<input id="nWeight2" name="nWeight2" type="text" class="srk200" value="" maxlength="11" 
										onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')"
										onblur="this.value=this.value.replace(/[^0-9.]/g,'')"/><font size="4">kg</font>
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4" color="red">*</font><font size="4">当前体质指数</font>
								</td>
								<td>
									<input id="nBodyMassIndex1" name="nBodyMassIndex1" type="text" class="srk200" value="" maxlength="11" readonly="readonly" onclick="getBodyMassIndex1()"/>
								</td>
								<td align="right">
									<font size="4">下次随访目标体质指数</font>
								</td>
								<td>
									<input id="nBodyMassIndex2" name="nBodyMassIndex2" type="text" class="srk200" value="" maxlength="11" readonly="readonly" onclick="getBodyMassIndex2()"/>
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4" color="red">*</font><font size="4">心率</font>
								</td>
								
								<td>
									<input id="nHeartRate" name="nHeartRate" type="text" class="srk200" value="" maxlength="50" onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')" onblur="this.value=this.value.replace(/[^0-9.]/g,'')"/>
									<input type="button" value="输入..." style="height:30px;width: 60px;font-size:15px;" onclick="contact.getXML('2')"/>
								</td>
								<td align="right">
									<font size="4">其他</font>
								</td>
								<td>
									<input id="sOther" name="sOther" type="text" class="srk200"	value="" maxlength="25" />
								</td>
							</tr>
							<tr>
								<td colspan="4" class="zbt01" style="text-align: left">
									<h2>生活方式指导</h2>
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4" color="red">*</font><font size="4">目前吸烟量</font>
								</td>
								<td>
									<input id="nDaySmoke1" name="nDaySmoke1" type="text" class="srk200"	value="" maxlength="50" /><font size="4">支</font>
								</td>
								<td align="right">
									<font size="4">下次随访达到目标</font>
								</td>
								<td>
									<input id="nDaySmoke2" name="nDaySmoke2" type="text" class="srk200"	value="" maxlength="25" /><font size="4">支</font>
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4" color="red">*</font><font size="4">目前饮酒量</font>
								</td>
								<td>
									<input id="nDayDrink1" name="nDayDrink1" type="text" class="srk200"	value="" maxlength="50" /><font size="4">两</font>
								</td>
								<td align="right">
									<font size="4">下次随访达到目标</font>
								</td>
								<td>
									<input id="nDayDrink2" name="nDayDrink2" type="text" class="srk200" value="" maxlength="25" /><font size="4">两</font>
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4" color="red">*</font><font size="4">目前运动</font>
								</td>
								<td>
									<input id="nSport_EveryWeek1" name="nSport_EveryWeek1" type="text" class="srk70" value="" maxlength="50" onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')"  onblur="this.value=this.value.replace(/[^0-9.]/g,'')"  /><font size="4">次/周</font>&nbsp;&nbsp;
									<input id="nSport_EveryMinute1" name="nSport_EveryMinute1" type="text" class="srk70" value="" maxlength="50" onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')"  onblur="this.value=this.value.replace(/[^0-9.]/g,'')" /><font size="4">分钟/次</font>
								</td>
								<td align="right">
									<font size="4">下次随访达到目标</font>
								</td>
								<td>
									<input id="nSport_EveryWeek2" name="nSport_EveryWeek2" type="text" class="srk70" value="" maxlength="50" onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')"  onblur="this.value=this.value.replace(/[^0-9.]/g,'')"  /><font size="4">次/周</font>&nbsp;&nbsp;
									<input id="nSport_EveryMinute2" name="nSport_EveryMinute2" type="text" class="srk70"value="" maxlength="50" onkeyup="this.value=this.value.replace(/[^0-9.]/g,'')"  onblur="this.value=this.value.replace(/[^0-9.]/g,'')" /><font size="4">分钟/次</font>
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4">目前摄盐情况(咸淡)</font>
								</td>
								<td>
									<select id="sHaveSoltCode" name="sHaveSoltCode" style="font:23px/23px '宋体';font-weight: bold; color: #333333;height:30px;width:205px;margin-left:2px;padding:0px;">
										<option value=''>--请选择--</option>
									 </select>
								</td>
								<td align="right">
									<font size="4">下次随访达到目标</font>
								</td>
								<td>
									<select id="sHaveSoltCode2" name="sHaveSoltCode2" style="font:23px/23px '宋体';font-weight: bold; color: #333333;height:30px;width:205px;margin-left:2px;padding:0px;">
										<option value=''>--请选择--</option>
									 </select>
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4" color="red">*</font><font size="4">心理调整</font>
								</td>
								<td>
									<select id="sPsychplogicalRecoveryCode" name="sPsychplogicalRecoveryCode" style="font:23px/23px '宋体';font-weight: bold; color: #333333;height:30px;width:205px;margin-left:2px;padding:0px;">
										<option value=''>--请选择--</option>
									 </select>
								</td>
								<td align="right">
									<font size="4">遵医行为</font>
								</td>
								<td>
									<select id="sCompianceCode" name="sCompianceCode" style="font:23px/23px '宋体';font-weight: bold; color: #333333;height:30px;width:205px;margin-left:2px;padding:0px;">
										<option value=''>--请选择--</option>
									 </select>
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4">辅助检查</font>
								</td>
								<td>
									<input id="sAccessoryExamination" name="sAccessoryExamination" type="text" class="srk200"	value="" maxlength="50" />
								</td>
								<td align="right">
									<font size="4" color="red">*</font><font size="4">服药依从性</font>
								</td>
								<td>
									<select id="sDrugComplianceCode" name="sDrugComplianceCode" style="font:23px/23px '宋体';font-weight: bold; color: #333333;height:30px;width:205px;margin-left:2px;padding:0px;">
										<option value=''>--请选择--</option>
									 </select>
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4" color="red">*</font><font size="4">药物不良反应</font>
								</td>
								<td>
									<select id="sDrugReactionCode" name="sDrugReactionCode" onchange="changesDrugReactionCode(this)" style="font:23px/23px '宋体';font-weight: bold; color: #333333;height:30px;width:205px;margin-left:2px;padding:0px;">
										<option value=''>--请选择--</option>
									 </select>
									 <input id="sDrugReactionOther" name="sDrugReactionOther" type="text" class="srk200" value="" maxlength="50" style="display:none;"/>
								</td>
								<td align="right">
									<font size="4" color="red">*</font><font size="4">此次随访分类</font>
								</td>
								<td id="idsVisitingClassifyCode">
									<select id="sVisitingClassifyCode" name="sVisitingClassifyCode" style="font:23px/23px '宋体';font-weight: bold; color: #333333;height:30px;width:205px;margin-left:2px;padding:0px;">
										<option value=''>--请选择--</option>
									 </select>
								</td>
							</tr>
						</tbody>
					</table>
			</div>
			<div title="<h1>用药情况、转诊</h1>">
				<table width="100%" border="0" align="center" cellpadding="0"
						cellspacing="0" class="content02">
						<tbody>
							<tr>
								<td colspan="4" class="zbt01" style="text-align:right;">
								<input type="button" class="btn_submit" onclick="save('1');" value="上传" />
								<input type="button" class="btn_submit" id="btnSubmit" onclick="save('2');" value="保存" />
								</td>
							</tr>
							<tr>
								<td align="right" width="15%">
									<font size="4">药物名称1</font>
								</td>
								<td width="35%">
									<input id="sDrugName1" name="sDrugName1" type="text" class="srk200" value="" maxlength="50" />
								</td>
								<td align="right" width="8%">
									<font size="4">用法用量</font>
								</td>
								<td width="42%">
									<font size="4">每日</font>
									<input id="iDrug_EveryDay1" name="iDrug_EveryDay1" type="text" class="srk70" value="" maxlength="50" onkeyup="this.value=this.value.replace(/[^1-9.]/g,'')"  onblur="this.value=this.value.replace(/[^1-9.]/g,'')"   /><font size="4">次</font>
									<font size="4">每次</font>
									<input id="sDrug_EveryTime1" name="sDrug_EveryTime1" type="text" class="srk70" value="" maxlength="50" onkeyup="this.value=this.value.replace(/[^1-9.]/g,'')"  onblur="this.value=this.value.replace(/[^1-9.]/g,'')" />
									<select onchange="showDanWeiQt1(this)" id="sDrugQtdw1" name="sDrugQtdw1" style="font:23px/23px '宋体';font-weight: bold; color: #333333;height:30px;width:130px;margin-left:2px;padding:0px;">
										<option value="2">片</option>
										<option value="3">mg</option>
										<option value="99">其他单位</option>
									</select>
									<input id="sDrug_qitadw1" name="sDrug_qitadw1" type="text" class="srk70" style="display:none;width:60px;” value="" maxlength="10" />
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4">药物名称2</font>
								</td>
								<td>
									<input id="sDrugName2" name="sDrugName2" type="text" class="srk200" value="" maxlength="50" />
								</td>
								<td align="right">
									<font size="4">用法用量</font>
								</td>
								<td>
									<font size="4">每日</font>
									<input id="iDrug_EveryDay2" name="iDrug_EveryDay2" type="text" class="srk70" value="" maxlength="50" onkeyup="this.value=this.value.replace(/[^1-9.]/g,'')"  onblur="this.value=this.value.replace(/[^1-9.]/g,'')" /><font size="4">次</font>
									<font size="4">每次</font>
									<input id="sDrug_EveryTime2" name="sDrug_EveryTime2" type="text" class="srk70" value="" maxlength="50" onkeyup="this.value=this.value.replace(/[^1-9.]/g,'')"  onblur="this.value=this.value.replace(/[^1-9.]/g,'')"/>
									<select onchange="showDanWeiQt2(this)" id="sDrugQtdw2" name="sDrugQtdw2" style="font:23px/23px '宋体';font-weight: bold; color: #333333;height:30px;width:130px;margin-left:2px;padding:0px;">
										<option value="2">片</option>
										<option value="3">mg</option>
										<option value="99">其他单位</option>
									</select>
									<input id="sDrug_qitadw2" name="sDrug_qitadw2" type="text" class="srk70" style="display:none;width:60px;” value="" maxlength="10" />
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4">药物名称3</font>
								</td>
								<td>
									<input id="sDrugName3" name="sDrugName3" type="text" class="srk200" value="" maxlength="50" />
								</td>
								<td align="right">
									<font size="4">用法用量</font>
								</td>
								<td>
									<font size="4">每日</font>
									<input id="iDrug_EveryDay3" name="iDrug_EveryDay3" type="text" class="srk70" value="" maxlength="50" onkeyup="this.value=this.value.replace(/[^1-9.]/g,'')"  onblur="this.value=this.value.replace(/[^1-9.]/g,'')"/><font size="4">次</font>
									<font size="4">每次</font>
									<input id="sDrug_EveryTime3" name="sDrug_EveryTime3" type="text" class="srk70" value=""	maxlength="50" onkeyup="this.value=this.value.replace(/[^1-9.]/g,'')"  onblur="this.value=this.value.replace(/[^1-9.]/g,'')"  />
									<select onchange="showDanWeiQt3(this)" id="sDrugQtdw3" name="sDrugQtdw3" style="font:23px/23px '宋体';font-weight: bold; color: #333333;height:30px;width:130px;margin-left:2px;padding:0px;">
										<option value="2">片</option>
										<option value="3">mg</option>
										<option value="99">其他单位</option>
									</select>
									<input id="sDrug_qitadw3" name="sDrug_qitadw3" type="text" class="srk70" style="display:none;width:60px;” value="" maxlength="10" />
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4">其他药物</font>
								</td>
								<td>
									<input id="sDrugName4" name="sDrugName4" type="text" class="srk200"	value="" maxlength="50"/>
								</td>
								<td align="right">
									<font size="4">用法用量</font>
								</td>
								<td>
									<font size="4">每日</font>
									<input id="iDrug_EveryDay4" name="iDrug_EveryDay4" type="text" class="srk70" value=""	maxlength="50" onkeyup="this.value=this.value.replace(/[^1-9.]/g,'')"  onblur="this.value=this.value.replace(/[^1-9.]/g,'')"  /><font size="4">次</font>
									<font size="4">每次</font>
									<input id="sDrug_EveryTime4" name="sDrug_EveryTime4" type="text" class="srk70" value=""	maxlength="50" onkeyup="this.value=this.value.replace(/[^1-9.]/g,'')"  onblur="this.value=this.value.replace(/[^1-9.]/g,'')" />
									<select onchange="showDanWeiQt4(this)" id="sDrugQtdw4" name="sDrugQtdw4" style="font:23px/23px '宋体';font-weight: bold; color: #333333;height:30px;width:130px;margin-left:2px;padding:0px;">
										<option value="2">片</option>
										<option value="3">mg</option>
										<option value="99">其他单位</option>
									</select>
									<input id="sDrug_qitadw4" name="sDrug_qitadw4" type="text" class="srk70" style="display:none;width:60px;” value="" maxlength="10" />
								</td>
							</tr>
							<tr>
								<td colspan="4" class="zbt01" style="text-align: left">
									<h2>转诊</h2> 
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4">转诊原因</font>
								</td>
								<td>
									<input id="sTransferTreatment" name="sTransferTreatment" type="text" class="srk200"	value="" maxlength="50" />
								</td>
								<td align="right">
									<font size="4">转诊机构及科别</font>
								</td>
								<td>
									<input id="sTransferTreatmentDept" name="sTransferTreatmentDept" type="text" class="srk200"	value="" maxlength="25" />
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4">下次随访日期</font>
								</td>
								<td>
									<input id="dNextVisitingDate" name="dNextVisitingDate" type="text" class="srk200" value="" maxlength="50" readonly="readonly" onfocus="c.showMoreDay = false;c.show(this);"/>
								</td>
								<td align="right">
									<font size="4">随访单位</font>
								</td>
								<td>
									<input id="sNextVisitingPlace" name="sNextVisitingPlace" type="text" class="srk200"	value="" maxlength="25" />
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4" color="red">*</font><font size="4">随访医生签名</font>
								</td>
								<td>
									<select id="sVisitingDoctor" name="sVisitingDoctor" style="float:left;font:23px/23px '宋体';font-weight: bold; color: #333333;height:30px;width:205px;margin-left:2px;padding:0px;">
										<option value=''>--请选择--</option>
									 </select>
								</td>
								<td align="right">
									<font size="4">是否健康教育</font>
								</td>
								<td>
									&nbsp;&nbsp;<input id="iWeatherHealthEducation" type="checkbox" name="iWeatherHealthEducation" value="1"/><font size="4">是</font>
								</td>
							</tr>
							<tr id="trsHearthyContent" style="display:none">
								<td align="right">
									<font size="4">健康教育内容</font>
								</td>
								<td colspan="3">
								    <textarea id="sWeatherHealthEducationContent" style="width:800px;height:120px;font-size:18px;font-weight:bold;" name="sWeatherHealthEducationContent"></textarea>
									<img alt="帮助"  src="images/help.png"
                        				 style="vertical-align: middle"/>
                    					 <a href="#" onclick="ChoseJianKangZhiDao()"><span><font size="2">点击打开健康指导模版</font></span></a>
								</td>
							</tr>
							<tr>
								<td align="right">
									<font size="4">中医药行为干预</font>
								</td>
								<td colspan="3">
									<textarea id="BaoJianZhidaoContent" style="width:800px;height:120px;font-size:18px;font-weight:bold;" name="BaoJianZhidaoContent"></textarea>
									<img alt="帮助"  src="images/help.png"
                        				 style="vertical-align: middle"/>
                    					 <a href="#" onclick="ChoseZhongYiBaoJian()"><span><font size="2">选择行为干预</font></span></a>
								</td>
							</tr>
						</tbody>
					</table>	
					<!--选择健康指导的弹出层 -->
<div id="divChoseJianKangZhiDao" title="<font size='4'>健康指导模板</font>" style="padding:5px;width:1000px;height:500px;">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list02" align="center">
		<thead>
			<tr>
				<td style="width: 50px">
					<div class="divnr-auto">
						<font size="4">选择</font>
					</div>
				</td>
				<td align="center">
					<div class="divnr-auto">
						<font size="4">健康指导内容</font>
					</div>
				</td>
			</tr>
		</thead>
		<tbody id="tbodyJianKangZhiDao">
			<tr>
				<td align="center"><input id="1" type="checkbox" name="JianKangZhidaoContentCode" value="1"/></td>
				<td align="left"><font id="JianKangZhiDao1" size="4">坚持服药，建立长期的思想准备，必须按时遵医嘱服药，不可根据自己的感觉随意增减或停服降压药，要定时测血压并记录，定期门诊复查，若血压控制不满意，或有心动过缓等不良反应时，应随时就诊。</font></td>
			</tr>
			<tr>
				<td align="center"><input id="2" type="checkbox" name="JianKangZhidaoContentCode" value="2"/></td>
				<td align="left"><font id="JianKangZhiDao2" size="4">坚持低盐、低脂、低胆固醇饮食，宜食清淡，少量多餐，避免过饱及刺激性食物，多吃新鲜蔬菜水果，防止便秘。肥胖者应控制体重， 合理饮食对高血压防治起重要作用。</font></td>
			</tr>
			<tr>
				<td align="center"><input id="3" type="checkbox" name="JianKangZhidaoContentCode" value="3"/></td>
				<td align="left"><font id="JianKangZhiDao3" size="4">注意保暖，因寒冷刺激可促使血管收缩或痉挛，反射性引起血压升高。</font></td>
			</tr>
			<tr>
				<td align="center"><input id="4" type="checkbox" name="JianKangZhidaoContentCode" value="4"/></td>
				<td align="left"><font id="JianKangZhiDao4" size="4">劳逸结合，保持良好的身心状态，平时可根据年龄和病情定一个有计划的适度活动量，如每天散步、慢跑、快步走、打太极拳等。免竞技性活动和力量型活动，如球类比赛、举重、俯卧撑等，使血压有效控制和预防。</font></td>
			</tr>
			<tr>
				<td align="center"><input id="5" type="checkbox" name="JianKangZhidaoContentCode" value="5"/></td>
				<td align="left"><font id="JianKangZhiDao5" size="4">避免各种诱发因素，劝戒烟，限饮酒，控制体重，保证足量睡眠，学会自我心理调节，保持乐观情绪，冬天外出注意保暖，环境安静舒适，避免噪音刺激和引起精神高度兴奋的活动就可以预防高血压。</font></td>
			</tr>
			<tr>
				<td align="center"><input id="6" type="checkbox" name="JianKangZhidaoContentCode" value="6"/></td>
				<td align="left"><font id="JianKangZhiDao6" size="4">要坚持长期的饮食、运动、药物治疗，将血压控制在正常水平。</font></td>
			</tr>
		</tbody>
</table>
</div>
<!--选择健康指导的弹出层  -->


<!--选择行为干预的弹出层 -->
<div id="divChoseZhongYiBaoJian" title="<font size='4'>选择中医保健指导</font>" style="padding:5px;width:1000px;height:500px;">
	<table width="100%" border="0" cellspacing="0" cellpadding="0" class="list02" align="center">
		<thead>
			<tr>
				<td style="width: 50px">
					<div class="divnr-auto">
						<font size="4">选择</font>
					</div>
				</td>
				<td align="center">
					<div class="divnr-auto">
						<font size="4">保健指导内容</font>
					</div>
				</td>
			</tr>
		</thead>
		<tbody id="tbodyZhongYiBaoJian">
			<tr>
				<td align="center"><input id="1" type="checkbox" name="BaoJianZhidaoContentCode" value="1"/></td>
				<td align="left"><font id="ZhongYiBaoJian1" size="4">高钠盐饮食者要合理膳食，切忌高盐饮食，少食咸鱼、腊肉、酱菜、动物内脏、蛤贝类、菠菜等食物。</font></td>
			</tr>
			<tr>
				<td align="center"><input id="2" type="checkbox" name="BaoJianZhidaoContentCode" value="2"/></td>
				<td align="left"><font id="ZhongYiBaoJian2" size="4">长期紧张刺激者可通过听轻音乐、交谈等情志疗法予以宣泄情绪，避免紧张，保持乐观状态，喜则气缓、心情舒畅、气和志达、营卫通利。</font></td>
			</tr>
			<tr>
				<td align="center"><input id="3" type="checkbox" name="BaoJianZhidaoContentCode" value="3"/></td>
				<td align="left"><font id="ZhongYiBaoJian3" size="4">超重与肥胖者多数为痰瘀互结，要节制膳食，佐以饮食疗法：茶饮可选降脂益寿茶、陈山乌龙茶；食疗可选马兰头拌海带、绿豆海带粥。
						非肥胖人群可以多食用香蕉、橘子汁、花生与豆制品、鱼、脱脂奶、香菇、菠菜、粗粮、坚果等。茶饮可选用连心茶、枸杞茶、决明子茶、菊花茶等。</font></td>
			</tr>
			<tr>
				<td align="center"><input id="4" type="checkbox" name="BaoJianZhidaoContentCode" value="4"/></td>
				<td align="left"><font id="ZhongYiBaoJian4" size="4">吸烟、饮酒戒烟、限酒冬令可适当进补梨、百合、蜂蜜、山药、大枣等，以滋补肾虚、温补肾阳。</font></td>
			</tr>
			<tr>
				<td align="center"><input id="5" type="checkbox" name="BaoJianZhidaoContentCode" value="5"/></td>
				<td align="left"><font id="ZhongYiBaoJian5" size="4">缺乏运动者予可根据年龄及身体状况选择慢跑、快步走、太极拳、气功及其他生物行为方法。</font></td>
			</tr>
			<tr>
				<td align="center"><input id="6" type="checkbox" name="BaoJianZhidaoContentCode" value="6"/></td>
				<td align="left"><font id="ZhongYiBaoJian6" size="4">预防高血压发生发展可选用针灸、穴位按摩、穴位敷贴等中医疗法。</font></td>
			</tr>
			<tr>
				<td align="center"><input id="7" type="checkbox" name="BaoJianZhidaoContentCode" value="7"/></td>
				<td align="left"><font id="ZhongYiBaoJian7" size="4">根据人体生物钟节律，可分别在早上7点，下午3点和晚上7时服降血压药一日三次，可达到更好的降压效果。 </font></td>
			</tr>
		</tbody>
</table>

</div>
<!--选择行为干预的弹出层  -->
			</div>
		</div>
		<div class="layui-layer-shade" id="layui-layer-shade" times="1" style="z-index:19891014; background-color:#000; opacity:0.3; filter:alpha(opacity=30);"></div>
	</body>	
</html>